Lines Matching full:alert

1635 	else if (strncasecmp(argv[1], "alert", 5) == 0) {  in ipmi_lan_set()
1637 lprintf(LOG_NOTICE, "LAN set alert must be 'on' or 'off'"); in ipmi_lan_set()
1651 lprintf(LOG_NOTICE, "LAN set alert must be 'on' or 'off'"); in ipmi_lan_set()
1695 is_alert_destination(struct ipmi_intf * intf, uint8_t channel, uint8_t alert) in is_alert_destination() argument
1705 if (alert <= (p->data[0] & 0xf)) in is_alert_destination()
1712 ipmi_lan_alert_print(struct ipmi_intf * intf, uint8_t channel, uint8_t alert) in ipmi_lan_alert_print() argument
1721 lp_ptr = get_lan_param_select(intf, channel, IPMI_LANP_DEST_TYPE, alert); in ipmi_lan_alert_print()
1728 lp_ptr = get_lan_param_select(intf, channel, IPMI_LANP_DEST_ADDR, alert); in ipmi_lan_alert_print()
1735 printf("%-24s: %d\n", "Alert Destination", in ipmi_lan_alert_print()
1741 printf("%-24s: %s\n", "Alert Acknowledge", in ipmi_lan_alert_print()
1773 printf("%-24s: %s\n", "Alert Gateway", in ipmi_lan_alert_print()
1776 printf("%-24s: %d.%d.%d.%d\n", "Alert IP Address", in ipmi_lan_alert_print()
1779 printf("%-24s: %02x:%02x:%02x:%02x:%02x:%02x\n", "Alert MAC Address", in ipmi_lan_alert_print()
1808 ipmi_lan_alert_set(struct ipmi_intf * intf, uint8_t chan, uint8_t alert, in ipmi_lan_alert_set() argument
1829 /* alert destination ip address */ in ipmi_lan_alert_set()
1833 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_ADDR, alert); in ipmi_lan_alert_set()
1840 printf("Setting LAN Alert %d IP Address to %d.%d.%d.%d\n", alert, in ipmi_lan_alert_set()
1844 /* alert destination mac address */ in ipmi_lan_alert_set()
1848 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_ADDR, alert); in ipmi_lan_alert_set()
1855 printf("Setting LAN Alert %d MAC Address to " in ipmi_lan_alert_set()
1856 "%02x:%02x:%02x:%02x:%02x:%02x\n", alert, in ipmi_lan_alert_set()
1860 /* alert destination gateway selector */ in ipmi_lan_alert_set()
1863 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_ADDR, alert); in ipmi_lan_alert_set()
1871 printf("Setting LAN Alert %d to use Default Gateway\n", alert); in ipmi_lan_alert_set()
1876 printf("Setting LAN Alert %d to use Backup Gateway\n", alert); in ipmi_lan_alert_set()
1886 /* alert acknowledgement */ in ipmi_lan_alert_set()
1889 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_TYPE, alert); in ipmi_lan_alert_set()
1897 printf("Setting LAN Alert %d to Acknowledged\n", alert); in ipmi_lan_alert_set()
1902 printf("Setting LAN Alert %d to Unacknowledged\n", alert); in ipmi_lan_alert_set()
1911 /* alert destination type */ in ipmi_lan_alert_set()
1914 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_TYPE, alert); in ipmi_lan_alert_set()
1921 printf("Setting LAN Alert %d destination to PET Trap\n", alert); in ipmi_lan_alert_set()
1925 printf("Setting LAN Alert %d destination to OEM 1\n", alert); in ipmi_lan_alert_set()
1930 printf("Setting LAN Alert %d destination to OEM 2\n", alert); in ipmi_lan_alert_set()
1939 /* alert acknowledge timeout or retry interval */ in ipmi_lan_alert_set()
1942 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_TYPE, alert); in ipmi_lan_alert_set()
1952 printf("Setting LAN Alert %d timeout/retry to %d seconds\n", alert, data[2]); in ipmi_lan_alert_set()
1958 p = get_lan_param_select(intf, chan, IPMI_LANP_DEST_TYPE, alert); in ipmi_lan_alert_set()
1969 printf("Setting LAN Alert %d number of retries to %d\n", alert, data[3]); in ipmi_lan_alert_set()
1983 uint8_t alert; in ipmi_lan_alert() local
1997 /* alert print [channel] [alert] */ in ipmi_lan_alert()
2025 if (str2uchar(argv[2], &alert) != 0) { in ipmi_lan_alert()
2026 lprintf(LOG_ERR, "Invalid alert: %s", argv[2]); in ipmi_lan_alert()
2029 if (is_alert_destination(intf, channel, alert) == 0) { in ipmi_lan_alert()
2030 lprintf(LOG_ERR, "Alert %d is not a valid destination", alert); in ipmi_lan_alert()
2033 return ipmi_lan_alert_print(intf, channel, alert); in ipmi_lan_alert()
2036 /* alert set <channel> <alert> [option] */ in ipmi_lan_alert()
2056 if (str2uchar(argv[2], &alert) != 0) { in ipmi_lan_alert()
2057 lprintf(LOG_ERR, "Invalid alert: %s", argv[2]); in ipmi_lan_alert()
2060 if (is_alert_destination(intf, channel, alert) == 0) { in ipmi_lan_alert()
2061 lprintf(LOG_ERR, "Alert %d is not a valid destination", alert); in ipmi_lan_alert()
2065 return ipmi_lan_alert_set(intf, channel, alert, argc-3, &(argv[3])); in ipmi_lan_alert()
2194 "usage: lan alert print [channel number] [alert destination]"); in print_lan_alert_print_usage()
2207 "usage: lan alert set <channel number> <alert destination> <command> <parameter>"); in print_lan_alert_set_usage()
2215 " ipaddr <x.x.x.x> Set alert IP address"); in print_lan_alert_set_usage()
2217 " macaddr <x:x:x:x:x:x> Set alert MAC address"); in print_lan_alert_set_usage()
2221 " ack <on|off> Set Alert Acknowledge on or off"); in print_lan_alert_set_usage()
2227 " retry <number> Set number of alert retries"); in print_lan_alert_set_usage()
2266 " alert <on|off> Enable or disable PEF alerting for this channel"); in print_lan_set_usage()
2430 " alert print <channel number> <alert destination>"); in print_lan_usage()
2432 " alert set <channel number> <alert destination> <command> <parameter>"); in print_lan_usage()
2477 } else if (strncmp(argv[0], "alert", 5) == 0) { in ipmi_lanp_main()