HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Scripting for linux command
Operating System - Linux
1830211
Members
3229
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 03:38 PM
01-11-2011 03:38 PM
Scripting for linux command
Dear,
i have some commands to excute.
for these commands how to create the scripts
Verify server hardware:
# grep processor /proc/cpuinfo | wc -l
# grep MemTotal /proc/meminfo
# fdisk -l
# free –t -m
# ethtool
Verify Refsystem version:
# cat /etc/redhat-release
Regards,
Seenivasan P
i have some commands to excute.
for these commands how to create the scripts
Verify server hardware:
# grep processor /proc/cpuinfo | wc -l
# grep MemTotal /proc/meminfo
# fdisk -l
# free –t -m
# ethtool
Verify Refsystem version:
# cat /etc/redhat-release
Regards,
Seenivasan P
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 09:14 AM
01-12-2011 09:14 AM
Re: Scripting for linux command
#!/bin/bash
grep processor /proc/cpuinfo | wc -l
grep MemTotal /proc/meminfo
fdisk -l
free â t -m
ethtool
cat /etc/redhat-release
#(not sure what more you are looking for)
grep processor /proc/cpuinfo | wc -l
grep MemTotal /proc/meminfo
fdisk -l
free â t -m
ethtool
cat /etc/redhat-release
#(not sure what more you are looking for)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 08:04 AM
01-13-2011 08:04 AM
Re: Scripting for linux command
MYSCRIPT=$HOME/syscheck.sh
echo "#!/bin/bash" > $MYSCRIPT
echo "grep processor /proc/cpuinfo | wc -l" > $MYSCRIPT
echo "grep MemTotal /proc/meminfo" > $MYSCRIPT
echo "fdisk -l" > $MYSCRIPT
echo "free â t -m" > $MYSCRIPT
echo "ethtool" > $MYSCRIPT
echo "cat /etc/redhat-release" > $MYSCRIPT
chmod 700 $MYSCRIPT
at this point, your script is ready under your home directory. Simply run it by issuing this command
$HOME/syscheck.sh
Hope this helps
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP