10-22-2010
Quote:
Originally Posted by
lhareigh890
hello,
I'm planning to do inventory of all our servers but this time it's more on physical. Meaning I would like to check all hardware connected to it (external only like storage, power support) including the count Would like to get perhaps its serial nr..(linux and solaris different servers sun/hp/ibm)
is there a command for this one? can you suggest on how to? Afterwards, we'll just check it onsite for confirmation
thanks,
lhareigh
Once more i will suggest to have a look at the very usefull table/matrix of commands corresponding to the different unix-like systems that are on
unixguide.net
---------- Post updated at 07:25 PM ---------- Previous update was at 07:24 PM ----------
Quote:
For HP:
PA-RISC HP-UX (itaniums have an equivalent...) use /opt/ignite/bin/print_manifest or machinfo (11.23+)
For AIX:
you can use /usr/sbin/prtconf...
just FYI, prtconf is also on solaris
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi ..
I want to check the date for one file which is present on the remote machine.
How do i do that??
Also if i'm only having the sudo rights .. can i do that with my login or do i need all the access rights??
Please let me know asap. (3 Replies)
Discussion started by: decci_7
3 Replies
2. Solaris
Hi all,
i want to know the command for to check the how many clients are connected to NFS server?
regards
Krishna (4 Replies)
Discussion started by: murthy76
4 Replies
3. IP Networking
hi...
can anyone pls suggest a few methods to check whether a computer is connected to any network, using the terminal, not GUI.
thanks
eskay (1 Reply)
Discussion started by: eskay_karthik
1 Replies
4. IP Networking
On a Unix system terminal without GUI (graphical user interface) how can i check whether i am connected to a network. (1 Reply)
Discussion started by: ud4u
1 Replies
5. Linux
I am trying to get the number of cpus on a farm of linux boxes (about 100 of them) by 'sshing' to each of them and checking their /proc/cpuinfo file.
So I have a local script localscript.sh on each of those 100 machines which retrieves the number of cpus in it by using its /proc/cpuinfo file.... (1 Reply)
Discussion started by: waavman
1 Replies
6. Red Hat
I have a set up of 5 machines which are connected in same network.
Now i want to run a small application so that those machines are not ideal. (0 Replies)
Discussion started by: pradeepreddy
0 Replies
7. Windows & DOS: Issues & Discussions
Hello,
I have Win NT server running and I want to know how can I get Hardware RAID settings without rebooting the server?
Thanks in advance. (2 Replies)
Discussion started by: sureshcisco
2 Replies
8. Solaris
hi all, will command metastats tell whether there is hardware layered raid ?
i intend to do patching and plug out one of the disks in case the one inside encountered issues. (1 Reply)
Discussion started by: Exposure
1 Replies
9. Solaris
Hi,
I am porting a piece of code from Solaris to Linux. Code uses VMSTAT command.
On Solaris machine VMSTAT output is following:
uname -a:
SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440
vmstat:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m2... (3 Replies)
Discussion started by: Basant Mishra
3 Replies
LEARN ABOUT MINIX
truncate
TRUNCATE(1) User Commands TRUNCATE(1)
NAME
truncate - shrink or extend the size of a file to the specified size
SYNOPSIS
truncate OPTION... FILE...
DESCRIPTION
Shrink or extend the size of each FILE to the specified size
A FILE argument that does not exist is created.
If a FILE is larger than the specified size, the extra data is lost. If a FILE is shorter, it is extended and the extended part (hole)
reads as zero bytes.
Mandatory arguments to long options are mandatory for short options too.
-c, --no-create
do not create any files
-o, --io-blocks
treat SIZE as number of IO blocks instead of bytes
-r, --reference=RFILE
base size on RFILE
-s, --size=SIZE
set or adjust the file size by SIZE bytes
--help display this help and exit
--version
output version information and exit
The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (pow-
ers of 1000).
SIZE may also be prefixed by one of the following modifying characters: '+' extend by, '-' reduce by, '<' at most, '>' at least, '/' round
down to multiple of, '%' round up to multiple of.
AUTHOR
Written by Padraig Brady.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report truncate translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
dd(1), truncate(2), ftruncate(2)
Full documentation at: <http://www.gnu.org/software/coreutils/truncate>
or available locally via: info '(coreutils) truncate invocation'
GNU coreutils 8.28 January 2018 TRUNCATE(1)