Sponsored Content
Full Discussion: Can not find Machine SN
Operating Systems Solaris Can not find Machine SN Post 302994136 by Don Cragun on Sunday 19th of March 2017 05:07:26 PM
Old 03-19-2017
I don't remember a Solaris utility that provides that information, but a simple C program using the sysinfo() function with the command parameter set to SI_HW_SERIAL should get you what you want.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find which machine ...

Hi friend, pls let me know .. 1)How to fine which UNIX machine Ex . whether it is 32 bit processor OR 64 bit processor .. 2) HP-ux is machine or Architectural ? pls replay as soon as possible .. Thanks.. (3 Replies)
Discussion started by: premnathk
3 Replies

2. Programming

trying to find number of caches on a machine

I am trying to find the number of caches on a machine programatically. #include <stdio.h> #include <malloc.h> int main(void) { int *ptr,*ptr1,i,j; j=0; i=1; printf("Changing allocation with brk()\n"); while(1) { for(j=0;j<i;j++) { ptr =... (1 Reply)
Discussion started by: jacques83
1 Replies

3. Shell Programming and Scripting

How to Find JRE installed in linux machine..?

Hi all, Im new to linux... Im in need to write a shell script to check wthr JRE in linux machine... Wtz de best way to find thru BASH?? Plz help me out to solve this issue... Thanks (3 Replies)
Discussion started by: XivaX
3 Replies

4. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

5. UNIX for Advanced & Expert Users

how to find out if a port is available on a remote machine?

hi, I can ping into another unix machine, but I cannot seem to access a certain application. I think it might be because I am now allowed to connect to the port (because of firewall configuration). How can I find out if I have access to a port on another machine? thanks (2 Replies)
Discussion started by: JamesByars
2 Replies

6. AIX

How to Find if AIX machine is LPar or not

Hi, I want to know if there is any command which will tell me if an AIX machine is a LPar or not. I am using "lparstat -i" but it does not work on all AIX machines. Is there any generic command by whose output I will come to know if it is an LPar or not? Please help. Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

7. UNIX for Dummies Questions & Answers

How can I find one file in other machine?

Hi all, I logged in one machine. I want to find one file in other machine. However, I don't know exactly which and where the machine is. I used nmap command to search all available hosts in this network range. I got two available machines through this action. But I still can't find the file I want... (8 Replies)
Discussion started by: w062611
8 Replies

8. AIX

find nim server of a machine

Hi, i would like to know how can i find , in a client machine , the nim server. the nim server that this machine have , if the machine have it Thanks :confused: (1 Reply)
Discussion started by: prpkrk
1 Replies

9. Windows & DOS: Issues & Discussions

find wwn in windows machine ?

Hi guys .. How to can I know the HBA WWN address in the windows machine ? Pls advice with command ... (1 Reply)
Discussion started by: roooooot
1 Replies
sysinfo(2)							System Calls Manual							sysinfo(2)

NAME
sysinfo - manages system information strings SYNOPSIS
#include <sys/systeminfo.h> long sysinfo( int command, char *buf, long count ); PARAMETERS
Specifies the commands that manage the system information strings. They are described in the Available Commands section. Specifies the buffer used for the storage of system information. Specifies the size of the buffer pointed to by the buf parameter. DESCRIPTION
The sysinfo function retrieves and sets information relating to the operating system into a buffer pointed to by the buf parameter. This function is similar to the sysconf function which returns an integer instead of a string. Available Commands This section describes the commands that may be specified with the command parameter. The commands allow you to set certain attributes and they are listed in alphabetical order: Copies a string into the specified buffer that describes the instruction set of the current system's architecture. These names cannot conflict with predefined names in the C language compilation system. Copies a string into the specified buffer that represents the name of the present host machine. This is the same string that would be returned by the uname function in the nodename field. The name is typically the hostname or nodename that the machine is recognized by locally. The hostname is the name of the target machine as it is used in a network. Although the hostname may differ on various networks, the nodename that is presented to the appropriate network directory or name-to-address mapping service should produce a transport end point address. The name may not be fully qualified. Internet host names can be up to 256 bytes in length including the terminating null. Copies a string into the specified buffer that represents the name of the hardware manufacturer. This command is not supported in this implementation of the operating system. Copies a string into the specified buffer the ASCII representation of the hardware-specific serial number of the machine that exe- cuted the function call. This can be initiated in Read Only Memory through the software constants set when the machine is built. The string can contain non-numeric characters. This command is not supported in this implementation of the operating system. Copies a string into the specified buffer that represents the name of the machine. This is the same string that would be returned by the uname function in the machine field. Copies a string into the specified buffer that represents the name of the release. This is the same string that would be returned by the uname function in the release field. Copies the null-terminated contents of the specified buffer into the string that is maintained by the kernel. This value will be returned by successive calls to the sys- info function when used with the SI_HOSTNAME command. Superuser privileges are required to perform this action. Specifies that the string returned by the sysinfo function using the SI_SRPC_DOMAIN command is to be set to the value of the array pointed to by the buf parameter. This command is not supported in this implementation of the operating system. The command SI_SET_SYSNAME sets the system name. Copies the Secure Remote Procedure Call command name into the specified buffer. This command is not supported in this implementation of the operating system. Copies a string into the specified buffer the value that would be returned by the uname function in the sysname field. This is the name of the implementation of the operating system. RESTRICTIONS
Two commands, SI_SRPC_DOMAIN and SI_SET_SRPC_DOMAIN, are not currently supported. If either of these commands is specified, a value of -1 is returned and errno is set. RETURN VALUES
On success, the return value specifies the size in bytes required for the buffer to hold the value and terminating character of the string. If this value does not exceed the value specified in the count parameter, the string is copied. If this value exceeds the value specified by the count parameter, the string that is copied to the specified buffer is truncated to the count-1 bytes and a terminating character. If an error is encountered, a value of -1 is returned and errno is set to indicate the error. ERRORS
Specifies that the buf parameter does not point to a valid address, or that the data for a SET command is not allowed in this implementa- tion. Specifies that an invalid command was specified. See the RESTRICTIONS section. Specifies that the process does not have the appro- priate privileges for a SET command. SEE ALSO
Functions: getrlimit(2), setrlimit(2), sysconf(3), uname(2) sysinfo(2)
All times are GMT -4. The time now is 11:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy