I have to replace this line in Linux as
odmget is an AIX command and is invalid in Linux.
C_RAWNODE=`odmget -q"attribute = node_number" CuAt|grep value|sed "s/\"//g"| \
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Linux doesn't have an equivalent of the ODM, and so there's no equivalent command.
The configuration of Linux is spread throughout the filesystem and kernel.
On the assumption that node_number is related to clustering, you'll need to look at commands / files related to which ever clustering product you're using.
In short, it's not the command you're looking to replace, you need to alter the whole approach to getting that information on Linux.