shmac
1 Copper

Need help with proper racadm syntax for setting up syslog

Hello follow Dell users!

I searched this community, google and read the manual but it still not clear to me what the syntax is to update the syslog settings on the iDrac's on about 30 R620 servers I have.

 

I am referencing this:

https://topics-cdn.dell.com/pdf/idrac7-8-lifecycle-controller-v2606060_cli-guide_en-us.pdf

But when I type this:

 

racadm getconfig -g cfgRemoteHosts

 

I get this:

 

ERROR: Invalid group name specified.

 

Is there a higher level group I am missing?  From reading the manual I would think this would work:

 

racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable=1 -o cfgRhostsSyslogServer1=my.syslogservercom

 

My goal is to enable and setup the iDrac's syslog to go to

my.syslogserver.com

Any clarification or guidance would  be helpful.

Kind Regards,
Shmac

 

0 Kudos
7 Replies

Re: Need help with proper racadm syntax for setting up syslo

Hello,

 

/admin1-> racadm getconfig -g cfgRemoteHosts
cfgRhostsSyslogEnable=****
cfgRhostsSyslogServer1=****
cfgRhostsSyslogServer2=****
cfgRhostsSyslogServer3=****
cfgRhostsSyslogPort=****
cfgRhostsFwUpdateTftpEnable=****
cfgRhostsFwUpdateIpAddr=****
cfgRhostsFwUpdatePath=****
cfgRhostsSmtpServerIpAddr=****

(Values replaced with ****)


RAC1168: The RACADM "getconfig" command will be deprecated in a
future version of iDRAC firmware. Run the RACADM
"racadm get" command to retrieve the iDRAC configuration parameters.
For more information on the get command, run the RACADM command
"racadm help get".

This is the output I get from that command. My test system was on iDRAC firmware 2.60.60.60. The webgui or racadm getsysinfo should provide your iDRAC version.


As for setting up a remote syslog, have you checked the web GUI at Overview > Server > Logs > Settings? You can configure it there.

#Iwork4Dell
0 Kudos

Re: Need help with proper racadm syntax for setting up syslo

Can you confirm iDRAC FW version?

Below commands can be used to set Remote Sys Log server in iDRAC

racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable Enabled

racadm config -g cfgRemoteHosts -o cfgRhostsSyslogServer1 my.syslogserver.com

Thanks-


Shine

0 Kudos
shmac
1 Copper

Re: Need help with proper racadm syntax for setting up syslo

So weird I thought I posted this last night.

root@se-demo1:~# racadm getsysinfo

RAC Information:
RAC Date/Time = Thu Dec 20 16:08:34 2018

Firmware Version = 2.60.60.60
Firmware Build = 52
Last Firmware Update = 12/18/2018 23:31:20
Hardware Version = 0.01
MAC Address = E0Smiley Very HappyB:55:21:74:32

Common settings:
Register DNS RAC Name = 0
DNS RAC Name = idrac-D6XTCX1
Current DNS Domain =
Domain Name from DHCP = Disabled

 

And the error I get:

 

root@se-demo1:~# racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable Enabled
ERROR: The specified object value is not valid.


RAC1169: The RACADM "config" command will be deprecated in a
future version of iDRAC firmware. Run the RACADM
"racadm set" command to configure the iDRAC configuration parameters.
For more information on the set command, run the RACADM command
"racadm help set".
0 Kudos
DELL-Rey G
1 Nickel

Re: Need help with proper racadm syntax for setting up syslo

looks like the guide is wrong, the actual command is:
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable 1

0 Kudos
DELL-Rey G
1 Nickel

Re: Need help with proper racadm syntax for setting up syslo

my bad, the guide is correct, page 147

cfgRhostsSyslogEnable (Read or Write) Table 131.

Details of attribute - cfgRhostsSyslogEnable

Description To allow the RAC and SEL logs to be written to up to three remote syslog servers Enables or disables remote syslog.

Legal Values • 1 (TRUE) • 0 (FALSE) Default 0

 

https://www.dell.com/support/manuals/us/en/04/poweredge-r740/idrac_3.21.21.21_racadm/cfgrhostssyslog...

0 Kudos
shmac
1 Copper

Re: Need help with proper racadm syntax for setting up syslo

So actually it is wrong because I just tried this and it worked!!!

 

root@se-demo3:/mapr/sedemo# racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable 1
Object value modified successfully
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogServer1 my.syslogserver.com

So who do we contact to update the doc?

0 Kudos
shmac
1 Copper

Re: Need help with proper racadm syntax for setting up syslo

And here is the final confirmation:

 

root@se-demo1:/opt/mapr/logs# racadm getconfig -g cfgRemoteHosts
cfgRhostsSyslogEnable=1
cfgRhostsSyslogServer1=my.server.com
cfgRhostsSyslogServer2=
cfgRhostsSyslogServer3=
cfgRhostsSyslogPort=514
cfgRhostsFwUpdateTftpEnable=1
cfgRhostsFwUpdateIpAddr=0.0.0.0
cfgRhostsFwUpdatePath=
cfgRhostsSmtpServerIpAddr=0.0.0.0
0 Kudos