Home >

LunaSH Command Reference Guide > LunaSH Commands > ntls > ntls certificate monitor trap trigger

ntls certificate monitor trap trigger

Set the NTLS certificate expiry SNMP trap. This command defines when, and how often, an SNMP trap is sent when the NTLS certificate is about to expire.

Syntax

ntls certificate monitor trap trigger -preexpiry <days> -trapinterval <hours>

Parameter Shortcut Description
-preexpiry  -p

Specifies the number of before the certificate expires that the trap is triggered.

Range: 1 to 366

-trapinterval  -t

Specifies the interval, in hours, that the trap is sent once it has been triggered.

Range: 1-720

Example

lunash:>ntls certificate monitor trap trigger -preexpiry 10 -trapinterval 36
Certificate expiry trap is configured to be sent 10 days before the Certificate expiry day "Apr  4 15:58:32 2021 GMT" and on every 36 hour(s)
Shutting down certmonitord:                   [  OK  ]
Starting certmonitord:                        [  OK  ]

Command Result : 0 (Success)